<%@ Page language="c#" Codebehind="Confirm.aspx.cs" AutoEventWireup="True" Inherits="CrossFactory.SiteNote.XmlEditor.Confirm" %>
<%@ Import Namespace="CrossFactory.SiteNote.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>
			<%= pageResourceManager.GetString("pagetitle")%>
		</title>
		<LINK href="StyleSheets/XmlEditor.css" type="text/css" rel="stylesheet">
			<script language="javascript">
			
			window.returnValue = false;
			
			function Loaded()
			{
				var message;
				message = dialogArguments.message;

				if (dialogArguments.type) {
				    switch (dialogArguments.type) {
				        case "info":
				            message = '<img width="32" style="margin: 0 5 5 0;" align="left"  height="32" src="<%= Utils._ApplicationPath + Settings._settings.VirtualPath + "/WWW/Images/info.gif" %>">' + message;
				            document.getElementById('Yes').blur();
				            document.getElementById('No').blur();
				            break;
				        case "question":
				            message = '<img width="32" height="32" style="margin: 0 5 5 0;" align="left" src="<%= Utils._ApplicationPath + Settings._settings.VirtualPath + "/WWW/Images/help.gif" %>">' + message;
				            document.getElementById('Yes').blur();
				            document.getElementById('No').blur();
				            break;
				        case "alert":
				            message = '<img width="32" height="32" style="margin: 0 5 5 0;" align="left"  src="<%= Utils._ApplicationPath + Settings._settings.VirtualPath + "/WWW/Images/important.gif" %>">' + message;
				            document.getElementById('Yes').style.display = 'none';
				            document.getElementById('No').style.display = 'none';
				            document.getElementById('Ok').style.display = 'inline';
				            break;
				    }
				}
				
				content.innerHTML = message;
				
			}
			
			function Close(result)
			{
				window.returnValue = result;
				window.close();
			}
			</script>
	</head>
	<body onload="Loaded()">
		<table id="Main" cellSpacing="0" cellPadding="0" border="0" style="height:100%;width:100%;">
			<tr height="31">
				<td colspan="5">
					<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
						<tr>
							<td width="100%">
								<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
									<tr>
										<td width="100%" background="Images/HeaderLeft.gif"><img src="Images/Transp.gif" height="1" width="100%"></td>
										<td align="right"><img src="Images/HeaderRight.gif"></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td width="7" background="Images/BackgroundLeft.gif"><img src="Images/Transp.gif" width="7"></td>
				<td width="7"><img src="Images/Transp.gif" width="7"></td>
				<td id="content" width="100%" height="100%" style="padding-bottom:7px;" valign="middle" class="message">
				</td>
				<td width="7"><img src="Images/Transp.gif" width="7"></td>
				<td width="9" height="100%">
					<table border="0" cellpadding="0" cellspacing="0" width="9" height="100%">
						<tr height="32">
							<td width="9"><img src="Images/BackgroundTopRight.gif"></td>
						</tr>
						<tr height="100%">
							<td width="9" background="Images/BackgroundRight.gif"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr height="40">
				<td colspan="5">
					<table border="0" cellpadding="0" cellspacing="0" height="100%">
						<tr>
							<td height="8"><img src="Images/FooterLeft.gif"></td>
							<td width="100%">
								<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
									<tr>
										<td width="100%" background="Images/FooterCenter.gif" height="8"></td>
										<td height="8"><img src="Images/FooterRight.gif" width="255" height="8"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="right" width="100%" colSpan="3">
								<table id="Table5" width="100%" height="100%" border="0" style="background :url(Images/Footer.gif) no-repeat right; ">
									<tr>
										<td width="100%"></td>
										<td><input id="Yes" type="button" name="Yes" value='<%= pageResourceManager.GetString("yes")%>' onclick="Close(true);" style="width:50px;" class="btnValue" /></td>
										<td><input id="No" type="button" name="No" value='<%= pageResourceManager.GetString("no")%>' onclick="Close(false);" style="width:50px;" class="btnValue" /></td>
										<td><input id="Ok" type="button" name="Ok" value="<%= pageResourceManager.GetString("ok") %>" onclick="Close(true);" style="width:50px;display:none" class="btnValue"/></td>
										<td width="1"></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
